package com.naiterui.ehp.bs.pc.modules.sys.service.impl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.naiterui.ehp.bs.pc.modules.sys.entity.RoleDept;
import com.naiterui.ehp.bs.pc.modules.sys.mapper.RoleDeptMapper;
import com.naiterui.ehp.bs.pc.modules.sys.service.IRoleDeptService;

/**
 * 角色与部门对应关系
 */
@Service
public class RoleDeptServiceImpl extends ServiceImpl<RoleDeptMapper, RoleDept> implements IRoleDeptService {

    @Override
    @Transactional(rollbackFor = Exception.class)
    public void deleteBatch(Long[] roleIds) {
        this.baseMapper.deleteBatch(roleIds);
    }
}
